From 3ee9cab057a106ad5ddcbc061ba8f2eb3271ea6a Mon Sep 17 00:00:00 2001 From: rleungx Date: Tue, 27 Mar 2018 20:34:18 +0800 Subject: [PATCH] tweak error message --- src/cargo/ops/cargo_rustc/context/mod.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/cargo/ops/cargo_rustc/context/mod.rs b/src/cargo/ops/cargo_rustc/context/mod.rs index d51984375..1af18387d 100644 --- a/src/cargo/ops/cargo_rustc/context/mod.rs +++ b/src/cargo/ops/cargo_rustc/context/mod.rs @@ -760,11 +760,11 @@ impl<'a, 'cfg> Context<'a, 'cfg> { if ret.is_empty() { if !unsupported.is_empty() { bail!( - "cannot produce {} for `{}` as the target `{}` \ - does not support these crate types", - unsupported.join(", "), + "cannot compile `{}` package, because target `{}` \ + does not support the `{}` crate types", unit.pkg, - self.target_triple() + self.target_triple(), + unsupported.join(", ") ) } bail!( -- 2.30.2